import request from '@/utils/request'
import { host } from '@/api/common'

// 获取变量列表
export function getlocalVariable(data) {
  return request({
    url: host + '/api/local_variable',
    method: 'post',
    data
  })
}

// 获取变量列表
export function get_var_list(data) {
  return request({
    url: host + '/api/local_variable/get_var_list',
    method: 'post',
    data
  })
}

// 编辑变量
export function editlocalVariable(data) {
  return request({
    url: host + '/api/local_variable/edit',
    method: 'post',
    data
  })
}

// 获取变量信息
export function get_variable(data) {
  return request({
    url: host + '/api/local_variable/get_variable',
    method: 'post',
    data
  })
}

// 编辑变量
export function del_localVariable(data) {
  return request({
    url: host + '/api/local_variable/del_var',
    method: 'post',
    data
  })
}
